package Ctr;

import DB.SessionDB;
import Model.Session;
import Model.Teacher;

public class SessionCtr implements SessionCtrIF {

    /**
     * Get session by teacher and date
     * @param teacher
     * @param date
     * @return session
     */
    @Override
    public Session getSessionByTeacherAndDate(Teacher teacher, String date) {
        SessionDB sessionDB = new SessionDB();

        Session session = sessionDB.getSessionByTeacherAndDate(teacher, date);
        return session;
    }
}
